#include "CreateWindow.Game.h"

using namespace BlackDeath
using namespace CreateWindow;

#if _DEBUG
int _tmain(int argc, _TCHAR* argv[])
{
	try
	{
		CCreateWindow* game = new CCreateWindow();
		game->Run();
	}
	catch(CBlackDeathException& e)
	{
		fprintf(stderr, "An error has occured: %s\n", e.what());
		system("PAUSE");//press any key to continue
		return e.Get_ErrorCode();
	}

	return 0;
}
#else
int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
	try
	{
		CCreateWindow* game = new CCreateWindow();
		game->Run();
	}
	catch(BlackDeathException& e) 
	{
		return e.Get_ErrorCode();
	}

	return 0;
}
#endif